home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / Re Static Menus.3 < prev    next >
Encoding:
Internet Message Format  |  1996-07-10  |  1.6 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Static Menus
  2. Sent:        7/10/96 3:10 PM
  3. Received:    7/10/96 3:21 PM
  4. From:        Troy Gaul, tgaul@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >>Is there any way to "lock down" the root part's menus in such a way that
  9. >>the "active" part's menus are either not shown or appended to the root
  10. >>part's menus.
  11. >>
  12. >>Or ... What is the best way to create a part that cannot be activated by
  13. >>the user (like simple control parts).
  14. >
  15. >In theory, the root part itself can install its menu bar as the base menu
  16. >bar, but that's not something that can be done without the cooperation of
  17. >the root part.
  18.  
  19. Note that if you install your menus in the base menubar, they will show up
  20. for other documents that are opened into the same OpenDoc process.  In
  21. particular, Cyberdog opens multiple documents into a single process.
  22.  
  23. [from the beginning of the message:]
  24. >>Is there any way to "lock down" the root part's menus in such a way that
  25. >>the "active" part's menus are either not shown...
  26.  
  27. As a container, if you want to not allow another part to show its menus
  28. (however unfriendly that may be...), you can refuse to relinquish the menu
  29. focus when asked.  Again, this would probably mean overriding certain
  30. default ODF behavior.  This might also keep some parts (which want all of
  31. their UI focus set) from activating.
  32.  
  33. _troy
  34.  
  35. ......................................................................
  36.  Troy Gaul                                            tgaul@apple.com
  37.  Apple Computer, Inc.                                   OpenDoc Parts
  38.  
  39.  
  40.